home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: manipulating the stack in C
- Date: 26 Jan 1996 04:01:30 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4e9jmq$ron@sunsystem5.informatik.tu-muenchen.de>
- References: <4e8b20$lsq@newshost.lanl.gov>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Luke Emmert (luke@raj2.tn.cornell.edu) wrote:
-
- may I suggest you search for a different method. look, if stack should
- for some reason be at a low adress ( $4711 for example ), and you pass
- a $4711 arg your code will crash.
-
- If this problem would not occur, taking care of all that dynamic stack
- calculation is likely to cause bugs.
-
- why not save time and try some of these ideas:
-
- for example 0 or $ffffffff indicates end of argumentlist.
- all other arguments are not allowed to have this values, then.
-
- or let the first argument be an argument count.
-
- printf does kind of that method in indicating number of arguments
- in the string ("%d xxxx %s xxxx %c",int,char*,char).
-
- please, not the "stack on itself" thingy :)
-
- : * Luke Emmert 'luke@raj2.tn.cornell.edu'
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-